package io.renren.modules.live.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.live.entity.FanweAnchorEntity;
import io.renren.modules.live.vo.AnchorVo;
import io.renren.modules.live.vo.UserAnchorUpdateInfoVo;

import java.util.List;
import java.util.Map;

/**
 * 主播表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-17 09:18:22
 */
public interface FanweAnchorService extends IService<FanweAnchorEntity> {

    PageUtils queryPage(Map<String, Object> params);

    FanweAnchorEntity queryByUserName(String nickNumber);


    List<Long> findByVoideListVideoNameAndAnchorName(String content);

    void addAnchorFile(Long anchorId, String fileUrl);

    void updateUserById(UserAnchorUpdateInfoVo userAnchorUpdateInfoVo);

    /**
     * 管理员查看主播列表
     * @param anchorVo
     * @return
     */
    Map<String,Object> selectAnchorList(AnchorVo anchorVo)throws Exception;

    /**
     *新建主播账号
     * @return
     */
    FanweAnchorEntity insertAnchor(FanweAnchorEntity fanweAnchorEntity)throws Exception;

    /**
     *新建主播账号
     * @return
     */
    String obtainNickNumber()throws Exception;
    /**
     * 管理员查看主播信息
     * @param anchorId
     * @return
     */
    FanweAnchorEntity selectAnchorInformation(String anchorId);

    /**
     * 修改主播信息状态
     * @param anchorId
     * @param status
     * @return
     */
    Integer updateAnchorInStatus(String anchorId,String status);
}

